package com.hooper.threadpool.demo;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time ${YEAR}/${MONTH}/${DAY}/${TIME}
 */
public class Main {
    public static void main(String[] args) {
        MyThreadPool threadPool = new MyThreadPool(2, 4, 20);
        for (int i = 0; i < 31; i++) {
            threadPool.submit(new MyTask(i + 1));
        }
    }
}